package com.ruitu.mall_98_2.mvp.contract;

import com.beanu.arad.base.BaseModel;
import com.beanu.arad.base.BasePresenter;
import com.beanu.arad.base.BaseView;
import com.ruitu.router_module.bean.api.BaseResult;

import rx.Observable;

public interface AddAddressContract {
    interface Model extends BaseModel {
        Observable<BaseResult> addAddress(String userId, String ressName,
                                          String province, String city,
                                          String county, String address,
                                          String postCode,
                                          String phoneNumber, String status);

        Observable<BaseResult> updateAddress(String userId, String ressName,
                                          String province, String city,
                                          String county, String address,
                                          String postCode,
                                          String phoneNumber, String status);
    }

    interface View extends BaseView {
        void svaeSuccess();
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void addAddress(String userId, String ressName,
                                        String province, String city,
                                        String county, String address,
                                        String postCode,
                                        String phoneNumber, String status);

        public abstract void updateAddress(String userId, String ressName,
                                        String province, String city,
                                        String county, String address,
                                        String postCode,
                                        String phoneNumber, String status);
    }
}
